@use './styles/variables' as *;
@use './styles/mixins' as *;

html,
body,
div,
p,
ul,
li,
dl,
dt,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
form,
input,
select,
button,
textarea,
iframe,
table,
th,
td {
  margin: 0;
  padding: 0;
}
// body,
// html {
//   overflow: hidden;
//   height: 100%;
// }

img {
  border: 0 none;
  vertical-align: top;
}

ul,
li {
  list-style-type: none;
}

// h1,
// h2,
// h3,
// h4,
// h5,
// h6 {
//   font-size: 14px;
// }
.el-menu-item.is-active {
  background-color: $primary-color;
  color: #ffffff;
}
.el-DiaButton {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #c7d4ff;
}
.page-Body {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  height: calc(100vh - 180px);

  @media screen and (min-width: 1200px) {
    @media (max-resolution: 125dpi) {
      overflow: hidden;
      height: auto;
    }
  }
}
.page-title {
  margin-bottom: 22px;
}

// .page-content {
//   flex: 1;
//   overflow: auto;
//   padding-bottom: 60px;

//   @media screen and (min-width: 1200px) {
//     @media (max-resolution: 125dpi) {
//       overflow: hidden;
//     }
//   }
// }
// body,
// input,
// select,
// button,
// textarea {
//   font-size: 14px;
//   font-family: Tahoma, Geneva, sans-serif;
// }

button {
  cursor: pointer;
}

i,
em,
cite {
  font-style: normal;
}

body {
  background: #f7f8fa;
  color: #363636;
  line-height: 1.2;
}

a,
a:link {
  color: #222;
  text-decoration: none;
}

a:active,
a:hover {
  text-decoration: underline;
}

a:focus {
  outline: none;
}

.fixed:after {
  content: '.';
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

.fixed {
  display: block;
  min-height: 1%;
}

*html .fixed {
  height: 1%;
}

.clear {
  display: block !important;
  float: none !important;
  clear: both;
  overflow: hidden;
  width: auto !important;
  height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
}

.more {
  float: right;
}

.more a {
  font-weight: normal;
  font-size: 12px;
}

.fl,
.fr {
  display: inline;
  float: left;
}

.fr {
  float: right;
}

html, body {
  margin: 0;
  padding: 0;
}

#app {
  height: 100%;
}

// 修改滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

// 添加分页器通用样式
.pagination-block {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

// 响应式断点
$breakpoints: (
  'sm': 768px,
  'md': 992px,
  'lg': 1200px
);

// 响应式混合器
@mixin respond-to($breakpoint) {
  @if map.has-key($breakpoints, $breakpoint) {
    @media (max-width: map.get($breakpoints, $breakpoint)) {
      @content;
    }
  }
}

// 基础响应式设置
html {
  font-size: 16px;
  
  @include respond-to('lg') {
    font-size: 14px;
  }
  
  @include respond-to('md') {
    font-size: 12px;
  }
}

// 通用响应式类
.responsive-container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
  
  @include respond-to('lg') {
    max-width: 1140px;
  }
  
  @include respond-to('md') {
    max-width: 960px;
  }
  
  @include respond-to('sm') {
    max-width: 720px;
  }
}

// 表格响应式
.el-table {
  @include respond-to('md') {
    font-size: 12px;
    
    .cell {
      padding: 8px 6px;
    }
  }
}

// 表单响应式
.el-form {
  @include respond-to('md') {
    .el-form-item {
      margin-bottom: 15px;
    }
  }
}
